//
//  HomePageViewController.m
//  PersonalProjects
//
//  Created by 王家骏 on 15/9/7.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "HomePageViewController.h"


@interface HomePageViewController ()
// 首页导航条上面的控件

@property (strong, nonatomic) IBOutlet UILabel *selectCityLabel;
@property (strong, nonatomic) IBOutlet UITableView *mainTableView; //显示数据的tableView
@property (strong, nonatomic) IBOutlet UIButton *monthButton;
@property (strong, nonatomic) IBOutlet UIButton *dayButton;
@property (strong, nonatomic) IBOutlet UIButton *yearButton;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *headHeight;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *headBackViewHeight;
@property (strong, nonatomic) IBOutlet NSLayoutConstraint *monthButtonWidth;
- (IBAction)monthRentSelect:(id)sender;    //点击月租的方法
- (IBAction)daliyRentSelect:(id)sender;    //点击日租的方法
- (IBAction)yearRentSelect:(id)sender;

- (IBAction)selectCity:(id)sender;         //切换城市的方法

@property (strong, nonatomic) UIBarButtonItem *rightBarButtonItem;





@end

@implementation HomePageViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}
-(void)viewWillAppear:(BOOL)animated
{
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/
- (IBAction)selectCity:(id)sender {
    UIStoryboard *mainStryBoard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
    SelectCityViewController *selectCityViewController = [mainStryBoard instantiateViewControllerWithIdentifier:@"SelectCityViewController"];
    selectCityViewController.delegate = self;
    selectCityViewController.hidesBottomBarWhenPushed = YES;
    
    [self.navigationController pushViewController:selectCityViewController animated:YES];
    
    
    
}

@end
